home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Cream of the Crop 25
/
Cream of the Crop 25.iso
/
bbs
/
con_005c.zip
/
CONCORD.RAR
/
SCRIPT.RAR
/
READMSG.SCR
< prev
next >
Wrap
Text File
|
1997-04-25
|
1KB
|
42 lines
; READMSG.SCR : Example script file to read messages on certain area.
;
; By default, not called from anywhere; you should add
; a Run Script menutype yourself to some menu to use
; this script file.
;
; Give message area number as parameter to this script.
PARAM %WHICHAREA% = NUMBER
VAR %OLDAREA% = NUMBER
VAR %SEL% = NUMBER
VAR %FROM% = NUMBER
IF (%WHICHAREA% <> 0)
; temporarily change area to wanted message area
SET %OLDAREA% = @MAREA_NUM@
MENUTYPE 2006 %WHICHAREA%
END
; Ask to read messages
WRITE "^C14,0;Read (~1F)orward, (~2R)everse, (~3N)ew? ^W;^M;"
SET %SEL% = @ANSWER@
IF (%SEL% = 1)
SET @DEFAULT_ANSWER@ = 1
WRITE "^C14,0;From msg num (1-@MAREA_MAX@) : ^C15,1;^L5;^C14,0;^M;"
SET %FROM% = @ANSWER@
IF ((%FROM% < 1) OR (%FROM% > @MAREA_MAX@))
WRITE "^C12,0;Invalid msg num!^M;"
ELSE
MENUTYPE 2008 /FORWARD /JUMP:%FROM%
END
END
IF (%SEL% = 2)
MENUTYPE 2008 /REVERSE
END
IF (%SEL% = 3)
MENUTYPE 2008 /NEW
END
IF (%WHICHAREA% <> 0)
; go back to old msg area
MENUTYPE 2006 %OLDAREA%
END
QUIT